package org.particlethink.auth;

import org.particlethink.aop.Log;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

@Configuration
@ConfigurationProperties(prefix = "project.login")
public class UserLoginConfigProperties {
    private String jwtSecret;
    private Long tokenTimeout;
    private TimeUnit tokenTimeoutUnit;

    public String getJwtSecret() {
        return jwtSecret;
    }

    public void setJwtSecret(String jwtSecret) {
        this.jwtSecret = jwtSecret;
    }

    public Long getTokenTimeout() {
        return tokenTimeout;
    }

    public void setTokenTimeout(Long tokenTimeout) {
        this.tokenTimeout = tokenTimeout;
    }

    public TimeUnit getTokenTimeoutUnit() {
        return tokenTimeoutUnit;
    }

    public void setTokenTimeoutUnit(TimeUnit tokenTimeoutUnit) {
        this.tokenTimeoutUnit = tokenTimeoutUnit;
    }
}
